home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / sgml / unix / sgmlh / vmxtrn.h < prev   
Encoding:
C/C++ Source or Header  |  1991-07-03  |  2.8 KB  |  49 lines

  1. /******************************************************************************/
  2. /* VMXTRN.H: External declarations for VM public variables.
  3. */
  4. /******************************************************************************/
  5. /* Scalar variables.
  6. */
  7. extern int boundsw;           /* 1=prefix RS; 2=trim RE; 3=both; 0=neither. */
  8. extern int cdirsw;            /* 1=search current dir only; 0=use path. */
  9. extern int eltrsv;            /* Save eltrsw during prolog. */
  10. extern int eltrsw;            /* 1=trace element structure in error msg; 0=no.*/
  11. extern int tpes;              /* Index of current source in stack. */
  12. extern int prntmax;           /* Number of data or PI chars to print. */
  13. extern int src;               /* Return code from call to SGML services. */
  14. extern int srmsw;             /* 1=SHORTREF maps in use; 0=not used. */
  15. extern int suppsw;            /* 1=suppress parsing info; 0=report it. */
  16. extern int tpts;              /*Current index in tptags(initialize each pass.)*/
  17. extern UNCH *curfile;         /* Current file for messages. */
  18. extern UNS cnterr;            /* Number of errors reported. */
  19. extern UNS readcnt;           /* Number of bytes for DOS file read. */
  20. /******************************************************************************/
  21. /* Arrays and structures.
  22. */
  23. extern UNIV srcbp;            /* Ptr to SGML's RCB/IPB. */
  24. extern struct ad *alptr;      /* Current attribute list (tag or data). */
  25. extern struct entity *oldent; /* Most recent entity parsed. */
  26. extern struct ipbt it;        /* IPB: To SGML for parsing and services. */
  27. extern struct ipbt *itlpu;    /* Address of it. */
  28. extern struct source tpscbs[];/* Stack of open sources ("SCB stack"). */
  29. extern struct switches tpsw;  /* Parser control switches set by text proc. */
  30. extern UNCH pd[];             /* Place for data copied from SGML data space. */
  31. extern UNCH *ld;              /* In pd: Buffer for copied literal. */
  32. extern UNCH *path;            /* In pd: file ID buffer: len+path\fileid+EOS. */
  33. extern UNCH tptags[][NAMELEN+1]; /* Text processor element structure stack. */
  34. /******************************************************************************/
  35. /* Constants.
  36. */
  37. extern UNCH *eminmsg[];       /* End-tag minimization messages. */
  38. extern UNCH *genext[];        /* Generated external entity file types. */
  39. extern UNCH *realmsg[];       /* Real tag portion of minimization messages. */
  40. extern UNCH *msgfptr;         /* Pointer to actual SGML message file id. */
  41. extern UNCH options[];        /* Text for invalid option error message. */
  42. /******************************************************************************/
  43. /* Conditional inclusions
  44. */
  45. #ifdef V2
  46. extern UNCH *formats[];       /* Formatting procedures for chainsaw sculpture.*/
  47. #endif
  48. /******************************************************************************/
  49.